package com.exwave.socialgame.myutils;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class TimeUtils {

    public static String getTime() {
        Calendar calendar = Calendar.getInstance(); //获取当前时间
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        String time = simpleDateFormat.format(calendar.getTime());
        return time;
    }

    public static Long getMillTime() {
        Date date = new Date();
        return date.getTime();
    }
}
